package com.gitee.qdbp.general.system.biz.tenant.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.system.api.tenant.model.TenantCoreBean;
import com.gitee.qdbp.general.system.api.tenant.model.TenantCoreWhere;
import com.gitee.qdbp.general.system.api.tenant.service.ITenantCoreQueryer;
import com.gitee.qdbp.general.system.biz.tenant.basic.TenantCoreBasic;

/**
 * 租户信息业务处理类
 *
 * @author zhh
 * @version 181029
 */
@Service
@Transactional(readOnly = true)
public class TenantCoreQueryer implements ITenantCoreQueryer {

    /** 租户信息DAO **/
    @Autowired
    private TenantCoreBasic tenantCoreBasic;

    @Override
    public TenantCoreBean find(String id) throws ServiceException {
        return tenantCoreBasic.findById(id);
    }

    @Override
    public TenantCoreBean find(TenantCoreWhere where) throws ServiceException {
        return tenantCoreBasic.find(where);
    }

    @Override
    public PageList<TenantCoreBean> list(TenantCoreWhere where, OrderPaging paging) throws ServiceException {
        return tenantCoreBasic.list(where, paging);
    }

}